package com.molichuxing.services.infrastructure.bean;

import java.time.LocalDateTime;

import com.molichuxing.framework.bean.RootBean;

public class AioResultLogBean extends RootBean {
    /**
     *  id
     */
    private Integer id;

    /**
     * 支付单id payment_id
     */
    private Integer paymentId;

    /**
     * 付款流水号（第三方支付订单号） pay_number
     */
    private String payNumber;

    /**
     * 支付结果，支付平台返回的结果序列化后的json result_data
     */
    private String resultData;

    /**
     *  gmt_create
     */
    private LocalDateTime gmtCreate;

    /**
     *  gmt_modified
     */
    private LocalDateTime gmtModified;

    /**
     * payment_aio_result_log
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     * @date 2019-10-31 19:51:58
     * @return id 
     */
    @Override
	public Integer getId() {
        return id;
    }

    /**
     * 
     * @date 2019-10-31 19:51:58
     * @param id 
     */
    @Override
	public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 支付单id
     * @date 2019-10-31 19:51:58
     * @return payment_id 支付单id
     */
    public Integer getPaymentId() {
        return paymentId;
    }

    /**
     * 支付单id
     * @date 2019-10-31 19:51:58
     * @param paymentId 支付单id
     */
    public void setPaymentId(Integer paymentId) {
        this.paymentId = paymentId;
    }

    /**
     * 付款流水号（第三方支付订单号）
     * @date 2019-10-31 19:51:58
     * @return pay_number 付款流水号（第三方支付订单号）
     */
    public String getPayNumber() {
        return payNumber;
    }

    /**
     * 付款流水号（第三方支付订单号）
     * @date 2019-10-31 19:51:58
     * @param payNumber 付款流水号（第三方支付订单号）
     */
    public void setPayNumber(String payNumber) {
        this.payNumber = payNumber == null ? null : payNumber.trim();
    }

    /**
     * 支付结果，支付平台返回的结果序列化后的json
     * @date 2019-10-31 19:51:58
     * @return result_data 支付结果，支付平台返回的结果序列化后的json
     */
    public String getResultData() {
        return resultData;
    }

    /**
     * 支付结果，支付平台返回的结果序列化后的json
     * @date 2019-10-31 19:51:58
     * @param resultData 支付结果，支付平台返回的结果序列化后的json
     */
    public void setResultData(String resultData) {
        this.resultData = resultData == null ? null : resultData.trim();
    }

    /**
     * 
     * @date 2019-10-31 19:51:58
     * @return gmt_create 
     */
    @Override
	public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 
     * @date 2019-10-31 19:51:58
     * @param gmtCreate 
     */
    @Override
	public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 
     * @date 2019-10-31 19:51:58
     * @return gmt_modified 
     */
    @Override
	public LocalDateTime getGmtModified() {
        return gmtModified;
    }

    /**
     * 
     * @date 2019-10-31 19:51:58
     * @param gmtModified 
     */
    @Override
	public void setGmtModified(LocalDateTime gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AioResultLogBean other = (AioResultLogBean) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPaymentId() == null ? other.getPaymentId() == null : this.getPaymentId().equals(other.getPaymentId()))
            && (this.getPayNumber() == null ? other.getPayNumber() == null : this.getPayNumber().equals(other.getPayNumber()))
            && (this.getResultData() == null ? other.getResultData() == null : this.getResultData().equals(other.getResultData()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPaymentId() == null) ? 0 : getPaymentId().hashCode());
        result = prime * result + ((getPayNumber() == null) ? 0 : getPayNumber().hashCode());
        result = prime * result + ((getResultData() == null) ? 0 : getResultData().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        return result;
    }

    /**
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", paymentId=").append(paymentId);
        sb.append(", payNumber=").append(payNumber);
        sb.append(", resultData=").append(resultData);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}